package com.haiyan.demo16_api;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个整数");
        int age=sc.nextInt();

        System.out.println("请输入一个姓名");
        String name=sc.next();
        System.out.println("age:"+age);
        System.out.println("name:"+name);
        System.out.println("结束");
    }
}
